<?php
/**
 * Created by JetBrains PhpStorm.
 * File: MenuModel.class.php
 * User: Xnfy520@gmail.com
 * Date: 12-3-16
 * Time: 下午9:59
 */

	class MenuModel extends RelationModel{

		protected $_validate = array(

			array('name', 'require', '菜单名不能为空', 1),

		);

		protected $_link = array(
			'MenuItem' => array(
				'mapping_type'=>HAS_MANY,
				'mapping_name'=>'menuitem',
				'class_name'=>'MenuItem',
				'foreign_key'=>'menuid',
			),
		);

	}